using UnityEngine;
using System.Collections;

public class AttackBehaviour : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	void OnCollisionEnter(Collision collision) {
		LifeManager lifeManager = collision.collider.GetComponent<LifeManager>();
		if(lifeManager != null) {
			lifeManager.TakeHit();
		}
	}	
}
